/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package DTO;

public class CKho extends CId{
    private int id;
    public CKho(){}
    
    private String tenKho ="";
    public void setTenKho(String tenkho){
        this.tenKho = tenkho;
    }
    
    public String getTenKho(){
        return  this.tenKho;
    }
    
    private Boolean cuaHang;
    
    public void setCuaHang(Boolean loai){
        this.cuaHang = loai;
    }
    
    public Boolean getCuaHang(){
        return this.cuaHang;
    }
    private String diaChi;
    public void setDiaChi(String dia_chi){
        this.diaChi = dia_chi;
    }
    public String getDiaChi(){
        return this.diaChi;
    }
    
    private String dienThoai;
    public void setDienThoai(String dien_thoai){
        this.dienThoai = dien_thoai;
    }
    public String getDienThoai(){
        return this.dienThoai;
    }
    private String fax;
    public void setFax(String fax){
        this.fax = fax;
    }
    public String getFax(){
        return this.fax;
    }
    public String toString(){
        StringBuilder sBuilder = new StringBuilder();
        sBuilder.append("{");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.id,this.getId() ));
        sBuilder.append(",");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.cua_hang,this.getCuaHang()));        
        sBuilder.append(",");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.dia_chi,this.getDiaChi()));        
        sBuilder.append(",");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.dien_thoai,this.getDienThoai()));        
        sBuilder.append(",");
        sBuilder.append(String.format("\"%s\" :\" %s \"",CFields.fax,this.getFax()));        
        sBuilder.append("}");
        return sBuilder.toString();
    }
}
